<#import "/spring.ftl" as spring />
<form action="/validateUser" method="post">
    姓名:
    <input type="text" name="userName" value="<#if user??>${user.userName!}</#if>">
     <#if user??>
         <@spring.bind "user.userName" />
        <span style="color: red"> <@spring.showErrors ""/>  </span>
     </#if>
    <br><br>
    密码:<input type="password" name="password" value="<#if user??>${user.password!}</#if>">
    <#if user??>
        <@spring.bind "user.password" />
        <span style="color: red"> <@spring.showErrors "<br>"/>  </span>
    </#if>
    <br><br>

    <input type="submit" value="login">

</form>

